package club.haomoon.core.entity.log;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Schema(title = "退款日志实体")
public class RefundLogData implements Serializable {

    @TableId(value="id", type= IdType.AUTO)
   @Schema(title = "ID")
    private Integer id;

   @Schema(title = "编号")
    private String sn;

   @Schema(title = "退款记录ID")
    private Integer recordId;

   @Schema(title = "关联用户ID")
    private Integer userId;

   @Schema(title = "处理管理ID")
    private Integer handleId;

   @Schema(title = "总应付的金额")
    private BigDecimal orderAmount;

   @Schema(title = "本次退款金额")
    private BigDecimal refundAmount;

   @Schema(title = "退款状态: [0=退款中, 1=退款成功, 2=退款失败]")
    private Integer refundStatus;

   @Schema(title = "退款信息")
    private String refundMsg;

   @Schema(title = "创建时间")
    private Long createTime;

   @Schema(title = "更新时间")
    private Long updateTime;
}
